package com.umbrella.exception;

public class UmbraException extends RuntimeException{

	private static final long serialVersionUID = 1230810263766778758L;
	private Integer code = -1;
	private Throwable cause;
	
	public UmbraException(){
		super();
	}
	
	public UmbraException(Integer code, String message){
		super(message);
		this.code = code;
	}
	
	public UmbraException(Integer code, Throwable cause){
		super(cause);
		this.code = code;
	}
	
	public UmbraException(Integer code, String message, Throwable cause){
		super(message, cause);
		this.code = code;
	}
	
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMessage() {
		return super.getMessage();
	}

	public Throwable getCause() {
		return cause;
	}
	public void setCause(Throwable cause) {
		this.cause = cause;
	}

}
